﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TabDraws.ascx.cs" Inherits="BigLotterySyndicate.Secured.Users.Controls.TabDraws" %>
<%@ Register TagPrefix="Syndicate" TagName="Pager" Src="~/Controls/Pager.ascx" %>
<%@ Register TagPrefix="Syndicate" TagName="DrawListItem" Src="~/Secured/Controls/DrawListItem.ascx" %>
<asp:MultiView ID="MultiViewList" runat="server">
<asp:View ID="ViewList" runat="server">
<Syndicate:Pager runat="server" ID="TopPager" PageSize="40" PageIndexPageParam="Page" OnPageIndexChanged="Pager_PageIndexChanged" Visible="true"/>
<table cellpadding="2" cellspacing="2">
<thead>
<tr>
<th>Draw date</th>
<th>Players</th>
<th>Lines</th>
<th>Status</th>
<th>Details</th>
</tr>
</thead>
<tbody>
<asp:Repeater ID="RepeaterList" runat="server">
    <ItemTemplate>
    <Syndicate:DrawListItem ID="DrawListItem" runat="server" />    
    </ItemTemplate>    
    <AlternatingItemTemplate>
    <Syndicate:DrawListItem ID="DrawListItem" runat="server" AlternateRow="True" />    
    </AlternatingItemTemplate>
</asp:Repeater>
</tbody>
</table>
<Syndicate:Pager runat="server" ID="BottomPager" PageSize="40" PageIndexPageParam="Page" OnPageIndexChanged="Pager_PageIndexChanged" Visible="false"/>
</asp:View>
<asp:View ID="ViewEmpty" runat="server">
<p>No draws found.</p>
</asp:View>
</asp:MultiView>